package com.mercury.share.service;

import com.mercury.share.entity.Share;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mercury.share.entity.vo.ShareInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tong
 * @since 2021-11-22
 */
public interface ShareService extends IService<Share> {

    List<ShareInfo> getShareList();

    void addShare(ShareInfo shareInfo);

    ShareInfo getShareInfo(int id);

    Boolean isPersonal(int shareId, String userId);
}
